package com.company;

import java.util.Arrays;

public class Arrequals {
    public static void main(String[] args)
    {
        double[] score1={99,100,98.5,96.5,72};
        double[] score2=new double[5];
        score2[0]=99;
        score2[1]=100;
        score2[2]=98.5;
        score2[3]=96.5;
        score2[4]=72;
        double[] score3={99,96.5,98.5,100,72};
        if(Arrays.equals(score1,score2))
        {
            System.out.println("score1 数组和 score2 数组相等");
        }
        else
        {
            System.out.println("score1 数组和 score2 数组不等");
        }
        if(Arrays.equals(score1,score3))
        {
            System.out.println("score1 数组和 score3 数组相等");
        }
        else
        {
            System.out.println("score1 数组和 score3 数组不等");
        }
    }
}
